<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>第三方链接</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../plugins/mui/mui.min.css" rel="stylesheet" />
		<script src="../../js/statistics.js"></script>
		<style>
			.header{
				background: #fff;
			}
			.header h1{
				color:#333;
				font-size:18px;	
			}
			.header a{
				color:#666;
			}
			.header .close{
				display: inline-block;
				width: 32px;
				height: 20px;
				margin: 13px 10px 9px 10px;
				font-size: 16px;
				color:#666;
				position: relative;
				z-index: 999999;
			}
			.header i{
				font-style: normal;
				font-size: 16px;
			}
		</style>
	</head>

	<body>
		<header class='mui-bar mui-bar-nav header'>
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"><i>返回</i></a>
			<span class="mui-pull-left close">关闭</span>
			<h1 id='title' class='mui-title'></h1>
		</header>

		<script src="../../plugins/mui/mui.min.js"></script>
		<script src='../../plugins/jquery/jquery-3.1.0.min.js'></script>
		<!--<script type="text/javascript" src="../../js/judge.js" ></script>-->
		<script type="text/javascript">
			mui.plusReady(function(){			
				var self=plus.webview.currentWebview();
				var title=self.title;//获取标题
				$('#title').html(title);
				mui("header").on('tap','.close',function(){
					self.close();
				})
				//判断进来的是否为false
				var barItemWebviewArray;
				function inittabitemWebviews(){
					barItemWebviewArray= mui.preload({
						id:self.link,
						url:self.link,
						styles:{
							top:'44px',
							bottom: '0',
							left: '0px',
							bounce: 'vertical',
						},
						waiting:{
							autoShow:true,//自动显示等待框，默认为true
							title:'正在加载...'//等待对话框上显示的提示内容
			      		}
					});
					self.append(barItemWebviewArray);
					barItemWebviewArray.show();	
				}
				inittabitemWebviews();
				mui("header").on('tap','.close',function(){
					self.close();
				});
			})
		</script>
	</body>

</html>